<% title "librerías - nueva" %>

<!-- tiny_mce editor:INI -->
<script type="text/javascript" src="/javascripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
	mode : "textareas",
	theme : "advanced",
	theme_advanced_buttons1 : "bold,italic,underline,justifyleft,justifycenter,justifyright,justifyfull,undo,redo,formatselect",
	theme_advanced_buttons2 : "",
	theme_advanced_buttons3 : "",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
  theme_advanced_blockformats : "p,h3",
  theme_advanced_resizing : true,
  theme_advanced_statusbar_location : "bottom",
  theme_advanced_resize_horizontal : false
});
</script>
<!-- tiny_mce editor:END -->

<div id="contenido" class="librerias">
  <%= error_messages_for 'libreria' %>
  
  <div class="librerias">
		<div class="librerias_imagenes">
			<img alt="imagen para librerias" src="/imgs/librerias_imagen.png"/>
		</div>
		<% form_for( :libreria, :url => admin_librerias_insertar_url ) do |f| %>
    <div class="librerias_fichas">

			<p>
			  <label for="titulo">Nombre:</label>
			  <%= f.text_field :titulo %>
			</p>
			  
      <p>
        <label for="direccion">Dirección:</label>
        <%= f.text_field :direccion %>
      </p>
      
      <p>
        <label for="texto">Texto:</label>
        <%= f.text_area :texto %>
      </p>
      
      <div class="submit">
        <p>
          <%= submit_tag 'Nueva librería', :class => 'submit' %>
        </p>
      </div>
          	
    </div>
    <% end %>
	</div>
</div>
